package com.mofang.ticketing.base.serve.area.controller;

import com.mofang.ticketing.base.serve.area.pojo.response.AreaRespDTO;
import com.mofang.ticketing.base.serve.area.service.IAreaService;
import com.mofang.ticketing.common.core.result.Result;
import com.mofang.ticketing.common.core.urls.base.AreaUrl;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

/**
 * @BelongsProject: pms-group-digitization
 * @BelongsPackage: com.mofang.base.font.controller
 * @Author: jc
 * @CreateTime: 2022-05-20  11:02
 * @Version: 1.0
 */
@Api(tags = "省市区")
@RestController
public class AreaController {

    @Resource
    private IAreaService areaService;

    @ApiOperation(value = "获取省市区")
    @PostMapping(value = AreaUrl.AREA_LIST)
    public Result<List<AreaRespDTO>> areaList() {
        return Result.success(areaService.areaList());
    }


}
